<?php
defined('BASEPATH') OR exit('No direct script access allowed');
	class admin_model extends My_Model{
		public $table_name='admin';
		public function get_one($name,$password){
			$array=array(
				'username'=>$name,'password'=>$password
				);
	        $query = $this->db->where($array)->get($this->table_name);
	        return $query->result();
    	}
	}